import  '@/styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// 导入懒加载指令
import {lazyPlugin} from '@/directives/index.js'
import {componentPlugin} from '@/components/index.js'
import App from './App.vue'
import router from './router'

const app = createApp(App)
// 引入懒加载插件
// 懒加载插件化
app.use(lazyPlugin)
// 全局组件插件
app.use(componentPlugin)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.mount('#app')
